package com.hr.service;

import com.hr.mapper.TeacherMapper;
import com.hr.pojo.Teacher;
import com.hr.pojo.TeacherUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherServiceimpl implements TeacherServiceMapper{
    @Autowired
    private TeacherMapper teacherMapper;
    @Override
    public List<Teacher> getTeacherlist(Integer id) {
        List<Teacher>getTeacherlist = teacherMapper.getTeacherlist(id);
        return getTeacherlist;
    }

    @Override
    public List<TeacherUser> getTeacherIcon(Integer id) {
        List<TeacherUser> teacherIcon = teacherMapper.getTeacherIcon(id);
        return teacherIcon;
    }
}
